package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.RightdetailInsureMapper;
import com.ktgj.customer.domain.RightdetailInsure;
import com.ktgj.customer.service.IRightdetailInsureService;

/**
 * 卡权益明细保险中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-27
 */
@Service
public class RightdetailInsureServiceImpl implements IRightdetailInsureService 
{
    @Autowired
    private RightdetailInsureMapper rightdetailInsureMapper;

    /**
     * 查询卡权益明细保险中间
     * 
     * @param id 卡权益明细保险中间ID
     * @return 卡权益明细保险中间
     */
    @Override
    public RightdetailInsure selectRightdetailInsureById(Long id)
    {
        return rightdetailInsureMapper.selectRightdetailInsureById(id);
    }

    /**
     * 查询卡权益明细保险中间列表
     * 
     * @param rightdetailInsure 卡权益明细保险中间
     * @return 卡权益明细保险中间
     */
    @Override
    public List<RightdetailInsure> selectRightdetailInsureList(RightdetailInsure rightdetailInsure)
    {
        return rightdetailInsureMapper.selectRightdetailInsureList(rightdetailInsure);
    }

    /**
     * 新增卡权益明细保险中间
     * 
     * @param rightdetailInsure 卡权益明细保险中间
     * @return 结果
     */
    @Override
    public int insertRightdetailInsure(RightdetailInsure rightdetailInsure)
    {
        return rightdetailInsureMapper.insertRightdetailInsure(rightdetailInsure);
    }

    /**
     * 修改卡权益明细保险中间
     * 
     * @param rightdetailInsure 卡权益明细保险中间
     * @return 结果
     */
    @Override
    public int updateRightdetailInsure(RightdetailInsure rightdetailInsure)
    {
        return rightdetailInsureMapper.updateRightdetailInsure(rightdetailInsure);
    }

    /**
     * 批量删除卡权益明细保险中间
     * 
     * @param ids 需要删除的卡权益明细保险中间ID
     * @return 结果
     */
    @Override
    public int deleteRightdetailInsureByIds(Long[] ids)
    {
        return rightdetailInsureMapper.deleteRightdetailInsureByIds(ids);
    }

    /**
     * 删除卡权益明细保险中间信息
     * 
     * @param id 卡权益明细保险中间ID
     * @return 结果
     */
    @Override
    public int deleteRightdetailInsureById(Long id)
    {
        return rightdetailInsureMapper.deleteRightdetailInsureById(id);
    }
}
